#include "ManD711.h"
#include "Main_config.h"
#include "stdio.h"

BOOL ManD711::SetParam(WORD memId, Ndata* pSrcParam) {
	switch (memId) {
	case 1: ctrlVelo = pSrcParam->GetDword(); break;
	case 2: ctrlMode = pSrcParam->GetInt(); break;
	case 3: ctrlTarget = pSrcParam->GetDword(); break;
	}
	return true;
}


BOOL ManD711::GetParam(WORD memId, Ndata* pDstParam) {

	switch (memId)
	{
		//class
		case 0: {
			pDstParam->SetDataBody(STR_TYPE, "D711", 16);
			break;
		}
		//ctrlVelo
		case 1: {
			pDstParam->SetDword(ctrlVelo);
			break;
		}
		//ctrlMode
		case 2: {
			pDstParam->SetWord(ctrlMode);
			break;
		}//ctrlTarget
		case 3: {
			pDstParam->SetDword(ctrlTarget);
			break;
		}
		default:
			break;
	}

	return true;
}

